package com.zlll.winner.business.service.activity;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.activity.ActivityManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.vo.activity.ActivityListVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qsx
 * @since 2019-09-16
 */
public interface IActivityManagementService extends IService<ActivityManagement> {
    IPage getActivityManagementPage(String title,String cityCode,Integer status,Long startTime,Long endTime,Integer pageNo,Integer pageSize);

    ActivityManagement add(ActivityManagement activityManagement,Long userId);

    ActivityManagement edit(ActivityManagement activityManagement,Long userId);

    Boolean updateStatus(Long id,Integer status,Long userId);

    Boolean deleteActivityById(Long id,Long userId);

    Map getActivityInfo(Long id);

    IPage<ActivityListVo> getHomePage(String cityName, Integer pageSize, Integer pageNo);

    Boolean isApply(Long id);

    void updateStatus(Long id);

    void todayUpdate();

}
